/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.click.app.dao.hibernate;

import com.click.app.dao.AsignationPantPayDao;
import com.click.app.model.AsignationPantPay;
import com.click.app.model.PaymentsPant;
import java.util.List;

/**
 *
 * @author ariel
 */
public class AsignationPantPayDaoHibernate extends GenericDaoHibernate<AsignationPantPay, Long> implements AsignationPantPayDao{

    public AsignationPantPayDaoHibernate() {
        super(AsignationPantPay.class);
    }

    public List<AsignationPantPay> findByPaymentsPant(PaymentsPant paymentsPant) {
        return getHibernateTemplate().find("from AsignationPantPay where paymentsPant=?", paymentsPant);
    }

}
